<fieldset class="solid">
	<legend>#((orders == null||orders.id == null)?'创建预约':'修改预约')</legend>
	<input type="hidden" name="orders.id" value="#(orders.id??)" />
	<div>
		<label>学生:</label>
		<select name="orders.studentid">
					<option value="">请选择需要借书的学生</option>
			#for(x : students)
				#if(orders.studentid??!=null && x.studentid == orders.studentid)
					<option value="#(x.studentid)" selected="selected">#(x.studentname)</option>
				#else
					<option value="#(x.studentid)">#(x.studentname)</option>
				#end
			#end
		</select>#(studentidMsg)
		<!--<label>学生学号:</label>
		    <input type="text" name="orders.studentid" value="#(orders.studentid??)" />
		    -->
	</div>
<!--	<div>
		<label>图书索引号:</label>
		<input type="text" name="orders.bookid" value="#(orders.bookid??)" />#(bookidMsg)
	</div>
	<div>
		<label>图书副本编号:</label>
		<input type="text" name="orders.bookcopyid" value="#(orders.bookcopyid??)" />#(bookcopyidMsg)
	</div>-->
	<div>
		<label>图书:</label>
		<select name="orders.bookid">
			<option value="">请选择相应图书</option>
			#for(x : books)
				#if(orders.bookid??!=null && x.bookid == orders.bookid)
					<option value="#(x.bookid)" selected="selected">#(x.bookname)</option>
				#else
					<option value="#(x.bookid)">#(x.bookname)</option>
				#end
			#end
		</select>#(bookidMsg)
	</div>
	<!--<div>
		<label>预约时间:</label>
		<input type="text" name="orders.ordertime" value="#(orders.ordertime??)" />#(ordertimeMsg)
	</div>-->
	<div>
		<label>预约时间:</label>
		<input type="text" name="orders.ordertime" value="#(orders.ordertime??)" class="Wdate" onClick="WdatePicker({el:this,dateFmt:'yyyy-MM-dd'})"/>#(ordertimeMsg)
	</div>
	<div>
		<label>&nbsp;</label>
		<input value="#((orders == null||orders.id == null)?'创建':'修改')" type="submit">
	</div>
</fieldset>